home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.clark.net!not-for-mail
  2. From: gusty@clark.net (Harlan Messinger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Major problem with strings.
  5. Date: 12 Mar 1996 18:53:39 GMT
  6. Organization: Clark Internet Services, Inc., Ellicott City, MD USA
  7. Message-ID: <4i4h7j$h1k@clarknet.clark.net>
  8. References: <31438275.72DB@aol2.com> <4i0gn0$5g9@sam.inforamp.net>
  9. NNTP-Posting-Host: explorer.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  14.  
  15. Randy Charles Morin (rmorin@inforamp.net) wrote:
  16. : In article <31438275.72DB@aol2.com>, Neil <neil@aol2.com> wrote:
  17. : >1    char *club="";
  18. : >2    club="/public_html/neil";
  19. : >3    strcat(club,argv[1]+5);
  20. : >4    strcat(club,"/");
  21. : No, this just won't do.  When you want a '/' slash in C, use two slashes.  The 
  22. : '/' is also used to denote an escape sequence (for special characters).  Thus 
  23. : your code should read...
  24.  
  25. Actually, that's for backslashes. Forward slashes are interpreted as 
  26. regular characters.
  27.  
  28.